package com.qf.boot220301.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping()
public class DateController {
    @RequestMapping("/date")
    public Map<String,Object> date(){
        Map<String,Object> map = new HashMap<>();
        map.put("date",new Date());
        return map;
    }



}
